package com.yulongtian.offers;

import java.text.DecimalFormat;

/**
 * @author YulongTian
 * @date 2022/8/23 - 13:24
 */
public class Test01 {
    public static void main(String[] args) {
        //转换格式
        DecimalFormat df = new DecimalFormat("#.00");
        System.out.println(Double.valueOf(df.format(Double.parseDouble("12.66999"))));
    }
}
